From: Frank Haverkamp Date: Fri, 20 Dec 2013 19:27:20 +0000 (+0100) Subject: GenWQE: Accidently casting to u32 where u64 is required X-Git-Tag: archive/raspbian/4.9.13-1+rpi1~10^2~7331^2~22 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/%22bookmarks:/?a=commitdiff_plain;h=a45a0258d1f817b60fcd5bc67dc7ef692f4615bb;p=linux-4.9.git GenWQE: Accidently casting to u32 where u64 is required Fix a casting to u32 where u64 would be appropriate. The bad casting made the driver unusable. Signed-off-by: Frank Haverkamp Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/misc/genwqe/card_utils.c b/drivers/misc/genwqe/card_utils.c index 663157b3a0d4..6b1a6ef9f1a8 100644 --- a/drivers/misc/genwqe/card_utils.c +++ b/drivers/misc/genwqe/card_utils.c @@ -59,7 +59,7 @@ int __genwqe_writeq(struct genwqe_dev *cd, u64 byte_offs, u64 val) if (cd->mmio == NULL) return -EIO; - __raw_writeq((__force u32)cpu_to_be64(val), cd->mmio + byte_offs); + __raw_writeq((__force u64)cpu_to_be64(val), cd->mmio + byte_offs); return 0; }